SVM: Treat the vlapic's tpr as the master copy and sync the vtpr to it
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 14 Dec 2007 11:50:24 +0000 (11:50 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 14 Dec 2007 11:50:24 +0000 (11:50 +0000)
commit2d3604815210d7b59b78ca630c19ec75bfa51d49
tree73147b57177dfd536a676d2729dbe66d587455aa
parent91403dca9a3a558c5f53316a26ba7330fc1531c5
SVM: Treat the vlapic's tpr as the master copy and sync the vtpr to it
before every vm entry.  This fixes HVM save/restore/migrate, as the
vtpr value was only being synced on guest TPR writes before.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vlapic.c
xen/arch/x86/hvm/vmx/vmx.c
xen/include/asm-x86/hvm/hvm.h